package com.sptpc.demo.model;

import lombok.*;
import org.joda.money.Money;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;


@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Drink {
    public Integer id;//饮品编号
    @NotBlank
    public String name;//饮品名
    @NotNull
    public Money price;//饮品价格

//    @DateTimeFormat(pattern = "yyyy-MM-dd")
//    public LocalDate enrollDate;//上架时间
}
